package cn.kzgg.ymcc.feign;

import cn.kzgg.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-media",fallbackFactory = MediaFileFeignClientFallbackFactory.class)
public interface MediaFileFeignClient {

    @GetMapping("/mediaFile/courseDetail/{chapterId}")
    JSONResult courseDetail(@PathVariable("chapterId") Long chapterId);
}
